package sctu.edu.java.year2016.team01.xuhanmei.day20160526.practice.KnowInterface;

/**
 * Created by Administrator on 2016/5/26.
 */
public class Phone implements USB, WiFi {//一个类可以实现多个接口，实现接口用implements，但要对方法
    //进行复写

    @Override//用类实现接口后要对方法进行复写
    public void read() {
        System.out.println("调用phone read()");

    }

    @Override
    public void write() {
        System.out.println("调用phone write()");

    }

    @Override
    public void switchon() {
        System.out.println("打开wifi");

    }

    @Override
    public void switchoff() {
        System.out.println("关闭wifi");

    }
}
